package com.huawei.appgallery.forum.cards.bean;

import android.text.TextUtils;
import com.huawei.appgallery.forum.base.card.bean.Section;
import com.huawei.appgallery.forum.base.card.bean.User;
import java.util.List;

public class ForumFeedRecommendCardBean extends ForumHorizonBean {
    private List<FeedRecommendItemBean> list_;
    private boolean showEmptyTip;

    public List<FeedRecommendItemBean> ˊ() {
        return this.list_;
    }

    public boolean ˎ() {
        return this.showEmptyTip;
    }

    public void ˎ(boolean z) {
        this.showEmptyTip = z;
    }

    public boolean ˏ(Section section) {
        if (section == null || this.list_ == null || this.list_.size() <= 0) {
            return false;
        }
        boolean z = false;
        for (FeedRecommendItemBean feedRecommendItemBean : this.list_) {
            boolean z2;
            if (feedRecommendItemBean != null && feedRecommendItemBean.ᐝ() == 1) {
                Section ˊ = feedRecommendItemBean.ˊ();
                if (!(ˊ == null || ˊ.ˊ() != section.ˊ() || ˊ.ᐝ() == section.ᐝ())) {
                    ˊ.ˏ(section.ᐝ());
                    z2 = true;
                    z = z2;
                }
            }
            z2 = z;
            z = z2;
        }
        return z;
    }

    public boolean ˎ(String str, int i) {
        if (TextUtils.isEmpty(str) || this.list_ == null || this.list_.size() <= 0) {
            return false;
        }
        boolean z = false;
        for (FeedRecommendItemBean feedRecommendItemBean : this.list_) {
            if (feedRecommendItemBean != null && feedRecommendItemBean.ᐝ() == 0) {
                User ˎ = feedRecommendItemBean.ˎ();
                if (!(ˎ == null || ˎ.ॱˋ() == null || !ˎ.ॱˋ().equals(str) || ˎ.ʻॱ() == i)) {
                    z = true;
                    ˎ.ˎ(i);
                }
            }
            z = z;
        }
        return z;
    }

    public String ˋ() {
        return ॱॱ();
    }
}
